import requestService from "../service/request";

const Api = {
  create: "/app/doupiaopiao/order/create",
  list: "/app/doupiaopiao/order/list",
  detail: "/app/doupiaopiao/order/detail",
  pay: "/app/doupiaopiao/order/pay",
  vote: "/app/doupiaopiao/order/voteDetail",
};

//创建订单
export function create(data) {
  return requestService(Api.create, {
    type: "post",
    data,
  });
}
//获取订单信息 数组
export function OrderList(data) {
  return requestService(Api.list, {
    type: "get",
    data,
  });
}
//获取订单信息
export function OrderDetail(data) {
  return requestService(Api.detail, {
    type: "get",
    data,
  });
}
//确认下单
export function confirmOrder(data) {
  return requestService(Api.pay, {
    type: "get",
    data,
  });
}
//获取出票的详情
export function getVoteDetail(data) {
  return requestService(Api.vote, {
    type: "get",
    data,
  });
}
